package demo3;

/**
 * @program: java-generic
 * @description:
 * @author: bjc
 * @create: 2021-08-15 15:10
 */
public class Main {

    public static void main(String[] args) {
        Parent<String> first = new ChildFirst<>();
        first.setValue("test");
        System.out.println(first.getValue());


        ChildSecond childSecond = new ChildSecond();
        childSecond.setValue(100);
        System.out.println(childSecond.getValue());
    }
}
